<template>
  <div class="goods">
    <page-content
      :tableConfig="tableConfig"
      ref="pageContentRef"
      pageName="goods"
      title="商品"
    >
      <template #oldPrice="scope"> {{ '￥' + scope.row.oldPrice }} </template>
      <template #imgUrl="scope">
        <el-image
          style="width: 60px; height: 60px"
          :src="scope.row.imgUrl"
          preview-teleported
          :preview-src-list="[scope.row.imgUrl]"
        />
      </template>
    </page-content>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

import { tableConfig } from './config/content.config'

export default defineComponent({
  name: 'goods',
  setup() {
    return {
      tableConfig
    }
  }
})
</script>

<style scoped lang="less">
.goods {
  position: relative;
}
</style>
